<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
    <h1 style="text-align: center">学生管理页</h1>
     <table class="table table-striped" style="width:340px;margin: auto;border:1px solid black">
        <thead>
        <tr>
            <th>学生Id</th>
            <th>学生名称</th>
            <th style="display: flex">
                <a th:href="@{/student/toAddStudent}" style="color: blue">新增学生</a>
                <a th:href="@{/score/toAddScore}" style="margin-left: 10px">录入成绩</a>
            </th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="s:${students}">
            <td th:text="${s.studentId}" th:id="${s.studentId}"></td>
            <td th:text="${s.studentName}"></td>
            <td style="line-height: 10px;display: inline-flex">
                <a th:href="'/student/deleteStudent/'+${s.studentId}" style="color: red;display: block;text-align: center;margin: 0 50px 0 0;" >删除</a>
                <a th:href="'/student/toUpdateStudent?id='+${s.studentId}" style="color: green;display: block;text-align: center">修改</a>
            </td>
        </tr>
        </tbody>
    </table>
</body>
</html>